<script type="module" src="./SyntaxParser.js"></script>

<textarea id="source">
  {
    a: 1,
    b: 2
  };
</textarea>

<button onclick="console.log(myFun.evaluate(myFun.parse(document.getElementById('source').value)));">run</button>